<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:a4j="http://richfaces.org/a4j">
    <a4j:loadStyle src="/css/default.css" />
    <a4j:loadBundle basename="ApplicationMessages" var="Messages"/>
    <head>
        <title>
            Muebles Los Alpes - #{titulo}
        </title>
        <link rel="stylesheet" href="../css/default.css" type="text/css" media="screen">
        </link>
        <link rel="stylesheet" href="../../css/default.css" type="text/css" media="screen">
        </link>
    </head>
    <body>
        <center>

            <table width="800px" align="center">
                <tr>
                    <td align="center">
                        <rich:layout>
                            <rich:layoutPanel position="top">
                                <h:form>
                                    <h:commandButton value="" image="/img/header.jpg" action="#{MenuBean.inicio}"/>
                                </h:form>
                            </rich:layoutPanel>
                                  <center>
                                
                            </center>
                             <center>
                                <rich:layoutPanel position="center">

                                    <rich:panel styleClass="controlbar" style="text-align:right;">
                                        <h:panelGrid columns="1">
                                            <h:outputLabel styleClass="texto_azul" value="Usted no ha iniciado sesión" rendered="#{!SecurityBean.logedIn}" />
                                            <h:form>
                                                <h:commandLink value="Bienvenido #{SecurityBean.logedUser}" styleClass="label" rendered="#{SecurityBean.logedIn}" />
                                            </h:form>
                                        </h:panelGrid>
                                    </rich:panel>
                                    <ui:insert name="body" />
                                </rich:layoutPanel>
                                
                            </center>
                            <rich:layoutPanel  position="bottom">
                                <h:graphicImage value="/img/bottom.jpg" />
                            </rich:layoutPanel>
                       
                        </rich:layout>
                    </td>

                </tr>
               
            </table>
          </center>
    </body>
</html>